當前位置: 首頁> 函數類別大全> dechex

dechex

十進制轉換為十六進制
名稱:dechex
分類:數學
所屬語言:php
一句話介紹:把十進制轉換為十六進制。

定義和用法

dechex()函數把十進制轉換為十六進制。

實例

<?php
echo dechex ( "30" ) ;
echo dechex ( "10" ) ;
echo dechex ( "1587" ) ;
echo dechex ( "70" ) ;
?>

親自試一試

文法

dechex ( dec_number )
參數描述
dec_number必需。規定要轉換的十進制數。

說明

返回一個字符串,包含有給定binary_string參數的十六進製表示。所能轉換的最大數值為十進制的4294967295,其結果為"ffffffff"。

同類函數
  • 找出最大值 max

    max

    找出最大值
  • 反正弦 asin

    asin

    反正弦
  • 十六進制轉換為十進制 hexdec

    hexdec

    十六進制轉換為十進制
  • 反餘弦 acos

    acos

    反餘弦
  • 找出最小值 min

    min

    找出最小值
  • 對除法結果取整 intdiv

    intdiv

    對除法結果取整
  • 返回exp(number) - 1,甚至當number 的值接近零也能計算出準確結果 expm1

    expm1

    返回exp(number)-1,甚至當n
  • 指數表達式 pow

    pow

    指數表達式
熱門文章